package org.fpp.sqlparse;

import cn.hutool.core.util.StrUtil;

import java.util.Arrays;
import java.util.List;

/**
 * @author pengpeng_fu@infinova.com.cn
 * @date 2023-12-22 15:20
 */
public class DataModelConstant {
    protected static final String DEFAULT = "default";
    protected static final String NOT = "not";
    protected static final String NULL = "null";
    protected static final String NOTNULL = NOT+NULL;
    protected static final String SPACE_NOTNULL = StrUtil.SPACE+NOT+StrUtil.SPACE+NULL;

    protected static final String CHAR = "char";
    protected static final String VARCHAR = "varchar";
    protected static final List<String> STRING_TYPE_LIST = Arrays.asList(CHAR,VARCHAR);

    protected static final String COMMENT = "comment";
    protected static final String AUTO_INCREMENT = "auto_increment";
    protected static final String SERIAL = "SERIAL";
    protected static final String UNIQUE = "unique";
    protected static final String PRIMARY_KEY = "primary key";

    protected static final String USING = "USING";

    protected static final String COLUMN ="column";

    protected static final String DROP="drop";
    protected static final String SET="set";
    protected static final String INDEX="index";

    protected static final String ON="on";

    protected static final String TO="to";

}
